﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MiniErp.Entity.DataStreams.DOs
{
    /// <summary>
    /// 岗位系统权限表   某个岗位在某个系统中有的某个权限
    /// </summary>
    [Table("JobsSystemsRights")]
    public class JobsSystemsRights : BaseEntity
    {
        /// <summary>
        /// 岗位系统权限编号
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        [ConcurrencyCheck]
        public int JobsSystemsRightsId { get; set; }
        #region 导航属性
        /// <summary>
        /// 岗位编号
        /// </summary>
        public int JobsId { get; set; }
        /// <summary>
        /// 系统编号
        /// </summary>
        public int SystemsId { get; set; }
        /// <summary>
        /// 权限编号
        /// </summary>
        public int RightsId { get; set; }
        public virtual Jobs Jobs { get; set; }
        public virtual Systems Systems { get; set; }
        public virtual Rights Rights { get; set; }
        #endregion
    }
}
